﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.ViewModels
{
    public class View_SaleOutRepository
    {
        /// <summary>
        /// 单据编码 主键 销售订单信息表唯一标识
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 业务类型  1销售订单 2采购入库 3销售出库
        /// </summary>
        public int? BusinessType { get; set; } = 3;
        /// <summary>
        /// 业务状态（1:正常，2:挂起，3:手工关闭，4:系统关闭）
        /// </summary>
        public int? BusinessStatus { get; set; } = 1;
        /// <summary>
        /// 单据类型  1:业务订单 2：入库单  3:出库单
        /// </summary>
        public int? DocumentType { get; set; } = 3;
        /// <summary>
        /// 单据状态【0：开立  1：退回  2：审核 】
        /// </summary>
        public int? DocumentStatus { get; set; } = 0;
        /// <summary>
        /// 单据日期（默认当前日期：）
        /// </summary>
        public string DocumentDate { get; set; } 
        /// <summary>
        /// 审批人姓名
        /// </summary>
        public string ExamUserName { get; set; }
        //111111111111111111111111111111111物料信息
        /// <summary>
        /// 物料id
        /// </summary>
        public int MaterialsId { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public long MaterialsCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialsName { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? CalulateNumber { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public double? Price { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public double? TotalPrice { get; set; }
        //111111111111111111111111111111111仓库信息
        /// <summary>
        /// 仓库
        /// </summary>
        public int? Repository { get; set; }
        /// <summary>
        /// 仓库代码
        /// </summary>
        public string? BaseCode { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string? BaseName { get; set; }
    }
}
